/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
//   商家注册
router.post('/api/admin/register',controller.admininfo.adminRegister )
// 商家登录账号
router.post('/api/admin/login',controller.admininfo.adminLogin)
// 文件上传
router.post('/api/admin/uploadFile',controller.upload.uploadFile)
// Logo更新
router.post('/api/admin/upload-logo',app.middleware.jwt(),controller.admininfo.uploadLogo)
// 店铺名称更新
router.post('/api/admin/upload-tradeName',app.middleware.jwt(),controller.admininfo.uploadTradeName)
// 店铺介绍更新
router.post('/api/admin/upload-shopintroduction',app.middleware.jwt(),controller.admininfo.uploadShopIntroduction)
// 店铺营业时间更新
router.post('/api/admin/upload-businesshours',app.middleware.jwt(),controller.admininfo.uploadBusinessHours)
// 店铺外卖起送价更新
router.post('/api/admin/upload-initialprice',app.middleware.jwt(),controller.admininfo.uploadInitialPrice)
// 店铺地址更新
router.post('/api/admin/upload-address',app.middleware.jwt(),controller.admininfo.uploadAddress)
// 新增类目
router.post('/api/admin/add-category',app.middleware.jwt(),controller.category.addCategory)
};   
